package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import org.springframework.stereotype.Service;

/**
 * ClassName: OrderService
 * Package: IntelliJ IDEA
 *
 * @author 张文豪
 * @description
 * @date 2023/8/19 10:00
 */
@Service
public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);
    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void reminder(Long id);

    void cancleOrder(OrdersCancelDTO ordersCancelDTO) throws Exception;

    void completeOrder(Long id);

    void rejectionOrder(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void confirmOrder(OrdersConfirmDTO ordersConfirmDTO);

    OrderVO getOrderDetail(Long id);

    OrderStatisticsVO getAllStatus();

    void cancleId(Long id) throws Exception;

    PageResult pageOrder(Integer page,Integer pageSize,Integer status);

    void againOrder(Long id);

    PageResult getConditionOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    void deliveryOrder(Long id);
}
